﻿@model ScrumProject.Models.Task

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Task</legend>
<table class="table">
    <thead></thead>
    <tbody>
        <tr>
            <td>
                Description
            </td>
            <td>
                @Html.TextBoxFor(model => model.Description, new { disabled = "disabled", @readonly = "readonly" })
            </td>
        </tr>
          <tr>
            <td>
                Status
            </td>
            <td>
                @Html.DropDownListFor(m => m.Status, new SelectList(new ScrumProject.ViewModels.TaskStatusModel().GetStatus(), "Id", "StatusCode"), new { disabled="disabled", style = "width: 400px" })
            </td>
        </tr>
          <tr>
            <td>
                User
            </td>
            <td>
                @Html.DropDownListFor(m => m.UserId, new SelectList(new ScrumProject.Models.UserRepository().GetAllUsers(), "Id", "Username"), new { disabled="disabled", style = "width: 400px" })
            </td>
        </tr>
          <tr>
            <td>
                Work Remaining
            </td>
            <td>
               @Html.TextBoxFor(model => model.WorkRemaining, new { disabled="disabled", style = "width: 400px" })
            </td>
        </tr>
        </tbody>
    </table>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" class="btn" /> |
        @Html.ActionLink("Back to List", "Index", new { storyId = ViewBag.storyId }, null)
    </p>
}


